<?php if($_SESSION['kboy_userid'] != $uid) {?>
	                <div class="sq-bd-r">
                    <div class="sq-r-item">
                        <div class="leader-info">
                            <div class="le-l">
                                <div class="le-l-1">
									<?php 
											if($_SESSION['kboy_leader'] == 1){
									?>
                                    <p>领队：<em><?=getUserNickName($uid)?></em></p>
									<?php
											}else{
									?>
                                    <p>会员：<em><?=getUserNickName($uid)?></em></p>
									<?php
											}
									?>
                                    <p><span class="sex">性别：<em>
									<?php
										if(getClassName("kboy_user","user_sex","uid=$uid") == 1){
											echo "男";
										}elseif(getClassName("kboy_user","user_sex","uid=$uid") == 0){
											echo "女";
										}else{
											echo "密";
										}
									?>
									</em></span><span>访客：<em><?=getNewsNums("kboy_forum_visitor","tid=$uid order by visitor_updatetime desc")?></em></span></p>
                                    <p>徒步里程：<em><?=getClassName("kboy_user","user_km","uid=$uid")?>公里</em></p>
                                    <p>活动次数：<em><?=getClassName("kboy_user","user_activetime","uid=$uid")?>次</em></p>
                                </div>
                                <div class="le-l-2">
                                    <ul>
                                        <li>
                                            <em><?=getNewsNums("kboy_forum_map","uid=$uid")?></em>
                                            <span>足迹</span>
                                        </li>
                                        <li>
                                            <em><?=getNewsNums("kboy_forum_friend","tid=$uid")?></em>
                                            <span>粉丝</span>
                                        </li>
                                        <li>
                                            <em><?=getNewsNums("kboy_forum_friend","uid=$uid")?></em>
                                            <span>关注</span>
                                        </li>
                                    </ul>
                                </div>
                                <div class="le-l-3"><!--<a href="javascript:void(0);" mid="<?=$uid?>" class="guanzhu">+关注</a>--><a href="forum_message.php?uid=<?=$uid?>">+留言</a></div>
                            </div>
                            <div class="le-r">
                                <a href="forum_news.php?uid=<?=$uid?>">
                                    <img src="<?=getClassName("kboy_user","user_face","uid=$uid")?>" width="185" height="195" alt=""/>
                                    <div class="info">
                                        <h3>个人简介</h3>
                                        <p><?=getClassName("kboy_user","user_about","uid=$uid")?></p>
                                    </div>
                                </a>
                            </div>
                        </div>
                    </div>
                    <div class="sq-r-item1">
                        <div class="sq-item-in">
                            <div class="title"><h3>ta的游记</h3><a href="forum_travel.php?uid=<?=$uid?>" class="more">更多&gt;&gt;</a></div>
                            <div class="yj-list">
							<?php
									$news_sql = "select * from kboy_forum_travel where uid=$uid order by id desc limit 3";
									$news_rows = mysql_query($news_sql);
									while($news_rs = mysql_fetch_array($news_rows)){
							?>
							<dl>
								<dt><a href="forum_travelview.php?newsid=<?=$news_rs['id']?>" target="_blank"><img src="<?=$news_rs['travel_pic']?>" width="90" height="82" alt=""/></a></dt>
								<dd><a href="forum_travelview.php?newsid=<?=$news_rs['id']?>" target="_blank"><?=$news_rs['travel_title']?></a></dd>
							</dl>
							<?php
									}
							?>
                            </div>
                        </div>
                        <div class="sq-item-in">
                            <div class="title"><h3>ta的相册</h3><a href="forum_photo.php?uid=<?=$uid?>" class="more">更多&gt;&gt;</a></div>
                            <div class="my-photo">
                                <div class="hd">
                                    <ul>
					<?php
							$news_sql = "select * from kboy_forum_pic where uid=$uid order by id desc limit 5";
							$news_rows = mysql_query($news_sql);
							while($news_rs = mysql_fetch_array($news_rows)){
					?>
							<li></li>
					<?php
							}
					?>
									</ul>
                                </div>
                                <div class="bd">
                                    <ul>
					<?php
							$news_sql = "select * from kboy_forum_pic where uid=$uid order by id desc limit 5";
							$news_rows = mysql_query($news_sql);
							while($news_rs = mysql_fetch_array($news_rows)){
					?>
					<li><a href="forum_photo.php?uid=<?=$uid?>"><img src="<?=$news_rs['photo_pic']?>" /></a></li>
					<?php
							}
					?>
                                    </ul>
                                </div>
                            </div>
                        </div>
					<div class="sq-item-in nb">
						<div class="title"><h3>ta的好友</h3><div class="myfocus"><a href="javascript:;" class="on">ta关注的</a>|<a href="javascript:;">ta的粉丝</a></div><a href="forum_friend.php?uid=<?=$uid?>" class="more">更多&gt;&gt;</a></div>
						<div class="friend-wrap">
							<div class="friend-item current">
								<ul>
				
									<?php
											$news_sql = "select * from kboy_forum_friend where uid=$uid order by id desc";
											$news_rows = mysql_query($news_sql);
											while($news_rs = mysql_fetch_array($news_rows)){
									?>
									<li>
										<a href="forum_news.php?uid=<?=$news_rs['tid']?>">
											<img src="<?=getClassName("kboy_user","user_face","uid=".$news_rs['tid'])?>" alt="">
											<p><?=getUserNickName($news_rs['tid'])?></p>
										</a>
									</li>
									<?php
											}
									?>
									
								</ul>
							</div>
							<div class="friend-item">
								<ul>
									<?php
											$news_sql = "select * from kboy_forum_friend where tid=$uid order by id desc";
											$news_rows = mysql_query($news_sql);
											while($news_rs = mysql_fetch_array($news_rows)){
									?>
									<li>
										<a href="<a href="forum_news.php?uid=<?=$news_rs['tid']?>">">
											<img src="<?=getClassName("kboy_user","user_face","uid=".$news_rs['tid'])?>" alt="">
											<p><?=getUserNickName($news_rs['tid'])?></p>
										</a>
									</li>
									<?php
											}
									?>
								</ul>
							</div>
						</div>
					</div>
                        <div class="sq-item-in">
                            <div class="title"><h3>谁看过ta的</h3></div>
                            <div class="watch-wrap">
                                <div class="watch-item">
                                    <div class="hd">
                                        <a class="next"></a>
                                        <a class="prev"></a>
                                    </div>
                                    <div class="bd">
                                        <div class="ulWrap">
                                            <ul>
										<?php
												$i = 1;
												$news_sql = "select * from kboy_forum_visitor where tid=$uid order by visitor_updatetime desc";
												$news_rows = mysql_query($news_sql);
												$news_nums = mysql_num_rows($news_rows);
												while($news_rs = mysql_fetch_array($news_rows)){
										?>
                                                <li>
                                                    <a href="forum_news.php?uid=<?=$news_rs['uid']?>">
                                                        <img src="<?=getClassName("kboy_user","user_face","uid=".$news_rs['uid'])?>" alt="">
                                                        <p><?=getUserNickName($news_rs['uid'])?></p>
                                                    </a>
                                                </li>
										<?php
												if($i % 2 == 0 && $i <$news_nums){
													echo "</ul><ul>";
												}
												$i ++ ;
												}
										?>
                                            </ul>


                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
<?php }else{ ?>
	                <div class="sq-bd-r">
                    <div class="sq-r-item">
                        <div class="leader-info">
                            <div class="le-l">
                                <div class="le-l-1">
									<?php 
											if($_SESSION['kboy_leader'] == 1){
									?>
                                    <p>领队：<em><?=getUserNickName($uid)?></em></p>
									<?php
											}else{
									?>
                                    <p>会员：<em><?=getUserNickName($uid)?></em></p>
									<?php
											}
									?>
                                    <p><span class="sex">性别：<em>
									<?php
										if(getClassName("kboy_user","user_sex","uid=$uid") == 1){
											echo "男";
										}elseif(getClassName("kboy_user","user_sex","uid=$uid") == 0){
											echo "女";
										}else{
											echo "密";
										}
									?>
									</em></span><span>访客：<em><?=getNewsNums("kboy_forum_visitor","tid=$uid order by visitor_updatetime desc")?></em></span></p>
                                    <p>徒步里程：<em><?=getClassName("kboy_user","user_km","uid=$uid")?>公里</em></p>
                                    <p>活动次数：<em><?=getClassName("kboy_user","user_activetime","uid=$uid")?>次</em></p>
                                </div>
                                <div class="le-l-2">
                                    <ul>
                                        <li>
                                            <em><?=getNewsNums("kboy_forum_map","uid=$uid")?></em>
                                            <span>足迹</span>
                                        </li>
                                        <li>
                                            <em><?=getNewsNums("kboy_forum_friend","tid=$uid")?></em>
                                            <span>粉丝</span>
                                        </li>
                                        <li>
                                            <em><?=getNewsNums("kboy_forum_friend","uid=$uid")?></em>
                                            <span>关注</span>
                                        </li>
                                    </ul>
                                </div>
                                <div class="le-l-3"><!--<a href="javascript:void(0);" mid="<?=$uid?>" class="guanzhu">+关注</a>--><a href="forum_message.php?uid=<?=$uid?>">+留言</a></div>
                            </div>
                            <div class="le-r">
                                <a href="forum_news.php?uid=<?=$uid?>">
                                    <img src="<?=getClassName("kboy_user","user_face","uid=$uid")?>" width="185" height="195" alt=""/>
                                    <div class="info">
                                        <h3>个人简介</h3>
                                        <p><?=getClassName("kboy_user","user_about","uid=$uid")?></p>
                                    </div>
                                </a>
                            </div>
                        </div>
                    </div>
                    <div class="sq-r-item1">
                        <div class="sq-item-in">
                            <div class="title"><h3>我的游记</h3><a href="forum_travel.php?uid=<?=$uid?>" class="more">更多&gt;&gt;</a></div>
                            <div class="yj-list">
							<?php
									$news_sql = "select * from kboy_forum_travel where uid=$uid order by id desc limit 3";
									$news_rows = mysql_query($news_sql);
									while($news_rs = mysql_fetch_array($news_rows)){
							?>
							<dl>
								<dt><a href="forum_travelview.php?newsid=<?=$news_rs['id']?>" target="_blank"><img src="<?=$news_rs['travel_pic']?>" width="90" height="82" alt=""/></a></dt>
								<dd><a href="forum_travelview.php?newsid=<?=$news_rs['id']?>" target="_blank"><?=$news_rs['travel_title']?></a></dd>
							</dl>
							<?php
									}
							?>
                            </div>
                        </div>
                        <div class="sq-item-in">
                            <div class="title"><h3>我的相册</h3><a href="forum_photo.php?uid=<?=$uid?>" class="more">更多&gt;&gt;</a></div>
                            <div class="my-photo">
                                <div class="hd">
                                    <ul>
					<?php
							$news_sql = "select * from kboy_forum_pic where uid=$uid order by id desc limit 5";
							$news_rows = mysql_query($news_sql);
							while($news_rs = mysql_fetch_array($news_rows)){
					?>
							<li></li>
					<?php
							}
					?>
									</ul>
                                </div>
                                <div class="bd">
                                    <ul>
					<?php
							$news_sql = "select * from kboy_forum_pic where uid=$uid order by id desc limit 5";
							$news_rows = mysql_query($news_sql);
							while($news_rs = mysql_fetch_array($news_rows)){
					?>
					<li><a href="forum_photo.php?uid=<?=$uid?>"><img src="<?=$news_rs['photo_pic']?>" /></a></li>
					<?php
							}
					?>
                                    </ul>
                                </div>
                            </div>
                        </div>
					<div class="sq-item-in nb">
						<div class="title"><h3>我的好友</h3><div class="myfocus"><a href="javascript:;" class="on">我关注的</a>|<a href="javascript:;">我的粉丝</a></div><a href="forum_friend.php?uid=<?=$uid?>" class="more">更多&gt;&gt;</a></div>
						<div class="friend-wrap">
							<div class="friend-item current">
								<ul>
				
									<?php
											$news_sql = "select * from kboy_forum_friend where uid=$uid order by id desc";
											$news_rows = mysql_query($news_sql);
											while($news_rs = mysql_fetch_array($news_rows)){
									?>
									<li>
										<a href="forum_news.php?uid=<?=$news_rs['tid']?>">
											<img src="<?=getClassName("kboy_user","user_face","uid=".$news_rs['tid'])?>" alt="">
											<p><?=getUserNickName($news_rs['tid'])?></p>
										</a>
									</li>
									<?php
											}
									?>
									
								</ul>
							</div>
							<div class="friend-item">
								<ul>
									<?php
											$news_sql = "select * from kboy_forum_friend where tid=$uid order by id desc";
											$news_rows = mysql_query($news_sql);
											while($news_rs = mysql_fetch_array($news_rows)){
									?>
									<li>
										<a href="<a href="forum_news.php?uid=<?=$news_rs['tid']?>">">
											<img src="<?=getClassName("kboy_user","user_face","uid=".$news_rs['tid'])?>" alt="">
											<p><?=getUserNickName($news_rs['tid'])?></p>
										</a>
									</li>
									<?php
											}
									?>
								</ul>
							</div>
						</div>
					</div>
                        <div class="sq-item-in">
                            <div class="title"><h3>谁看过我的</h3></div>
                            <div class="watch-wrap">
                                <div class="watch-item">
                                    <div class="hd">
                                        <a class="next"></a>
                                        <a class="prev"></a>
                                    </div>
                                    <div class="bd">
                                        <div class="ulWrap">
                                            <ul>
										<?php
												$i = 1;
												$news_sql = "select * from kboy_forum_visitor where tid=$uid order by visitor_updatetime desc";
												$news_rows = mysql_query($news_sql);
												$news_nums = mysql_num_rows($news_rows);
												while($news_rs = mysql_fetch_array($news_rows)){
										?>
                                                <li>
                                                    <a href="forum_news.php?uid=<?=$news_rs['uid']?>">
                                                        <img src="<?=getClassName("kboy_user","user_face","uid=".$news_rs['uid'])?>" alt="">
                                                        <p><?=getUserNickName($news_rs['uid'])?></p>
                                                    </a>
                                                </li>
										<?php
												if($i % 2 == 0 && $i <$news_nums){
													echo "</ul><ul>";
												}
												$i ++ ;
												}
										?>
                                            </ul>


                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
<?php } ?>